package com.zkthink.ceres.msgs.dto;

import com.zkthink.base.entity.SuperEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 实体类
 * 直播开启
 * </p>
 *
 * @author ck
 * @since 2021-12-22
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "MsgsLiveOnDTO", description = "直播开启")
public class MsgsLiveOnDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @NotNull(message = "id不能为空", groups = SuperEntity.Update.class)
    private Long id;

    /**
     * 直播人的id
     */
    @ApiModelProperty(value = "直播人的id")
    private Long mid;
    /**
     * 房间id
     */
    @ApiModelProperty(value = "房间id")
    @Length(max = 8, message = "房间id长度不能超过8")
    private String roomId;
    /**
     * 直播门票(小红心数目)
     */
    @ApiModelProperty(value = "直播门票(小红心数目)")
    private BigDecimal liveTicket;
    /**
     * 直播主题
     */
    @ApiModelProperty(value = "直播主题")
    @Length(max = 255, message = "直播主题长度不能超过255")
    private String liveTitle;
    /**
     * 直播类型
     */
    @ApiModelProperty(value = "直播类型")
    private Integer liveType;
    /**
     * 直播时间
     */
    @ApiModelProperty(value = "直播时间")
    private LocalDateTime liveTime;
    /**
     * 直播封面图片id
     */
    @ApiModelProperty(value = "直播封面图片id")
    private Long coverId;
    /**
     * 直播封面图片链接
     */
    @ApiModelProperty(value = "直播封面图片链接")
    @Length(max = 255, message = "直播封面图片链接长度不能超过255")
    private String coverUrl;
    /**
     * 开启类型0:直接开启1:预约开启
     */
    @ApiModelProperty(value = "开启类型0:直接开启1:预约开启")
    private Integer onType;
    /**
     * 直播状态0:未开启1:直播中2:已结束
     */
    @ApiModelProperty(value = "直播状态0:未开启1:直播中2:已结束")
    private Integer liveStatus;
    /**
     * 直播实际开始时间
     */
    @ApiModelProperty(value = "直播实际开始时间")
    private LocalDateTime startTime;
    /**
     * 直播实际结束时间
     */
    @ApiModelProperty(value = "直播实际结束时间")
    private LocalDateTime endTime;
    /**
     * 推流地址
     */
    @ApiModelProperty(value = "推流地址")
    @Length(max = 255, message = "推流地址长度不能超过255")
    private String pushUrl;
    /**
     * 播放地址
     */
    @ApiModelProperty(value = "播放地址")
    @Length(max = 255, message = "播放地址长度不能超过255")
    private String playUrl;

    /**
     * 直播门票(小红心数目)
     */
    @ApiModelProperty(value = "是否设置门票0:不设置门票1:设置门票")
    private int isTicket;

    @ApiModelProperty(value = "经度")
    private String longitude = "116.3972282409668";
    /**
     * 纬度
     */
    @ApiModelProperty(value = "纬度")
    private String latitude = "39.90960456049752";


    /**
     * 所在市代码
     */
    @ApiModelProperty(value = "所在市代码")
    private String cityCode;

    @ApiModelProperty(value = "交友图片")
    private String chatImg;
    @ApiModelProperty(value = "嘉宾简介")
    private String jbDesc;


    private String nickname;

    private String headimg;

    @ApiModelProperty(value = "观看人数")
    private int watchNum;


    @ApiModelProperty(value = "是否关注0:不是1:是")
    private int isConcern;

    @ApiModelProperty(value = "是否关注0:不是1:是")
    private int isSelf;

    @ApiModelProperty(value = "礼物数目")
    private int giftNum;
    @ApiModelProperty(value = "点赞数目")
    private int dzNum;
    @ApiModelProperty(value = "是否点赞0:不是;其他:是")
    private int isDz;
}
